<?php
/**
 * Caching mechanizm with apc
 * 
 * @version:	0.1
 * @package:	core
 * @author:		alex_ez
 * @created:	21 dec 2008
 *
 * @copyright:	(c) 2009 alex <qfox@ya.ru> yaroshevich aka alex_ez. All rights reserved.
 */

class cacher_eaccelerator implements cacher_interface
{
	protected $memcached = null;

	public function __construct()
	{
		
	}

	public function retrieve($k) {
		return eaccelerator_get($k);
	}

	public function store($k,&$v,$ttl=12) {
		return eaccelerator_put($k,$v,$ttl);
	}

	public function drop($k) {
		return eaccelerator_rm($k);
	}

	public function cleanup() {
		return eaccelerator_clear();
	}

	public function info() {
		return eaccelerator_info();
	}
}


?>